package com.run.cat.api.controller;


import com.run.cat.common.base.BaseResult;
import com.run.cat.dao.entity.Protocol;
import com.run.cat.service.IProtocolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * 协议表 前端控制器
 * </p>
 *
 * @author CG
 * @since 2020-08-19
 */
@Controller
@RequestMapping("/protocol")
public class ProtocolController {

    @Autowired
    private IProtocolService protocolService;

    @RequestMapping("/detail")
    @ResponseBody
    public BaseResult detail(){
       return BaseResult.successData(protocolService.queryOne(new Protocol()));
    }


}
